<template>
  <div class="target-power">
    <span :style="parseInt(row.lithiumValue) > 20 ? 'color: #08C172' : 'color: red'">{{ row.lithiumValue }}</span>
    <span v-show="row.status">&nbsp;|&nbsp;<span :style="row.status == '在线' ? 'color: #08C172' : 'color: var(--prev-border-color-lightgrey)'">{{ row.status }}</span>
    </span>
    <div class="power"
         v-show="row.charging == 1">
      <span>&nbsp;|&nbsp;</span>
      <icon-svg icon-name="chongdian" />
    </div>
  </div>
</template>

<script>
export default {
  name: "TargetPower",
  props: {
    row: {
      type: Object,
      default: () => { }
    }
  }
};
</script>

<style lang="scss" scoped>
.target-power {
  display: flex;
}
.power {
  display: flex;
  align-items: center;
}
// .power-img {
//   width: 20px;
//   height: 20px;
// }
// .img {
//   width: 100%;
//   height: 100%;
// }
</style>
